Back to High School Physics
while 1:
try:
a,b=map(int,input().split())
print(2*a*b)
except:
break
Funny Encryption Method
T=input()
for t in range(int(T)):
n=int(input())
a1=bin(n)
a2=bin(int('0x'+str(n),16))
b1=0
b2=0
for i in a1:
if i=='1':
b1+=1
for i in a2:
if i=='1':
b2+=1
print(b1,b2)